<%@ page import="com.jiazhong.Model.Goods" %>
<%@ page import="java.util.Date" %><%--
  Created by IntelliJ IDEA.
  User: 陈洋
  Date: 2022/10/28
  Time: 16:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    Goods goods=new Goods(1001,"耳机",18.0,new Date());
    request.setAttribute("goods",goods);

    //从作用域中获得goods商品属性
    /*Goods goods1 =(Goods)request.getAttribute("goods");
    Integer goods_id = goods1.getGoods_id();*/
%>
${requestScope.goods.goods_id}
${requestScope.goods.goods_name}
${requestScope.goods.goods_price}
${requestScope.goods.goods_time}
</body>
</html>
